package com.Iron.OtherBean;

import com.Iron.Service.Impl.UserServiceImpl;
import com.Iron.Service.UserService;
import org.springframework.beans.factory.FactoryBean;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;


//@Component("FactoryBean1")
public class FactoryBean1 implements FactoryBean<UserService> {

    public UserService getObject() throws Exception {
        return new UserServiceImpl();
    }

    public Class<?> getObjectType() {
        return null;
    }


}
